package com.woniu.atms.entity;

import com.woniu.atms.validation.AddCar;
import com.woniu.atms.vo.aft.site.group.AddGroup;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * (G5Car)实体类
 *
 * @author makejava
 * @since 2022-01-17 14:25:27
 */
@ToString
public class G5Car implements Serializable {
    private static final long serialVersionUID = 196419401487241842L;
    
    private Integer id;
    @NotBlank(message = "车名不能为null" ,groups = {AddCar.class})
    private String name;
    @NotBlank(message = "车牌号不能为null",groups = {AddCar.class})
    private String licenseNum;
    
    private Integer typeId;
    @NotBlank(message = "车辆编号不能为null",groups = {AddCar.class})
    private String carNum;
    
    private String status;
    
    private String isExit;

    public G5Car() {
    }

    public G5Car(String name, String licenseNum, Integer typeId, String carNum, String status, String isExit) {
        this.name = name;
        this.licenseNum = licenseNum;
        this.typeId = typeId;
        this.carNum = carNum;
        this.status = status;
        this.isExit = isExit;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLicenseNum() {
        return licenseNum;
    }

    public void setLicenseNum(String licenseNum) {
        this.licenseNum = licenseNum;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getCarNum() {
        return carNum;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIsExit() {
        return isExit;
    }

    public void setIsExit(String isExit) {
        this.isExit = isExit;
    }

}

